package cn.wolfcode.shop.service;

import cn.wolfcode.shop.domain.Property;

import java.util.List;

public interface IPropertyService {

    List<Property> listByCatalogId(Long catalogId);

    void saveOrUpdate(Property property);

    void delete(Long id);

    /**
     * 查询属性个数
     * @param id
     * @return
     */
    Integer selectPropertyCount(Long catalogId);

    /**
     * 根据目录id获取属性列表和对应的属性值
     * @param catalogId
     * @return
     */
    List<Property> listByCatalogIdForProduct(Long catalogId);
}
